<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>自动化运维平台</title>

    <!-- Bootstrap -->
    <link href="{{url_for('static',filename='resource/css/bootstrap.min.css')}}" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="{{url_for('static',filename='resource/css/font-awesome.min.css')}}" rel="stylesheet">
    <!-- NProgress -->
    <link href="{{url_for('static',filename='resource/css/nprogress.css')}}" rel="stylesheet">
    <!-- iCheck -->
    <link href="{{url_for('static',filename='resource/css/green.css')}}" rel="stylesheet">
    <!-- Datatables -->
    <link href="{{url_for('static',filename='resource/css/dataTables.bootstrap.min.css')}}" rel="stylesheet">
    <link href="{{url_for('static',filename='resource/css/buttons.bootstrap.min.css')}}" rel="stylesheet">
    <link href="{{url_for('static',filename='resource/css/fixedHeader.bootstrap.min.css')}}" rel="stylesheet">
    <link href="{{url_for('static',filename='resource/css/responsive.bootstrap.min.css')}}" rel="stylesheet">
    <link href="{{url_for('static',filename='resource/css/scroller.bootstrap.min.css')}}" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="{{url_for('static',filename='resource/css/custom.min.css')}}" rel="stylesheet">
  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="navbar nav_title" style="border: 0;">
              <a href="{{ url_for('dashboard') }}" class="site_title"><i class="fa fa-paw"></i> <span>自动化运维平台</span></a>
            </div>

            <div class="clearfix"></div>

            <!-- menu profile quick info -->
            <div class="profile clearfix">
              <div class="profile_pic">
                <img src="{{url_for('static',filename='touxiang.jpg')}}" alt="..." class="img-circle profile_img">
              </div>
              <div class="profile_info">
                <span>欢迎,</span>
                <h2>{{ current_user.name }}{% if current_user.role == 'dev' %}(开发人){% elif current_user.role == 'audit' and current_user.srole == 0 %}(主审核){% elif current_user.role == 'audit' and current_user.srole == 1 %}(副审核){% elif current_user.role == 'admin'%}(管理员){% endif %}</h2>
              </div>
            </div>
            <!-- /menu profile quick info -->

            <br />
            {% block menu %}{% endblock %}



          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>

              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <img src="{{url_for('static',filename='touxiang.jpg')}}" alt="">{{ current_user.name }}
                    <span class=" fa fa-angle-down"></span>
                  </a>
                  <ul class="dropdown-menu dropdown-usermenu pull-right">
                    <li><a href="{{ url_for('passwd') }}"> 修改密码</a></li>
                    <li><a href="{{ url_for('logout') }}"><i class="fa fa-sign-out pull-right"></i> 退出</a></li>
                  </ul>
                </li>


              </ul>
            </nav>
          </div>
        </div>
        <!-- /flashes -->
      <div>
      {% with messages = get_flashed_messages() %}
          {% if messages %}
            <ul class=flashes>
            {% for message in messages %}
                <li>{{ message }}</li>
            {% endfor %}
            </ul>
          {% endif %}
      {% endwith %}
      </div>

        <!-- page content -->
          {% block content %}
          {% endblock %}

        <!-- footer content -->
        <footer>
          <div class="pull-right">
            Inception_web - 自动化管理平台 by Logo.
          </div>
          <div class="clearfix"></div>
            <a name="bottom"></a>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

    <!-- jQuery -->
    <script src="{{url_for('static',filename='resource/js/jquery.min.js')}}"></script>
    <!-- Bootstrap -->
    <script src="{{url_for('static',filename='resource/js/bootstrap.min.js')}}"></script>
    <!-- FastClick -->
    <script src="{{url_for('static',filename='resource/js/fastclick.js')}}"></script>
    <!-- NProgress -->
    <script src="{{url_for('static',filename='resource/js/nprogress.js')}}"></script>
    <!-- iCheck -->
    <script src="{{url_for('static',filename='resource/js/icheck.min.js')}}"></script>
    <!-- Datatables -->
    <script src="{{url_for('static',filename='resource/js/jquery.dataTables.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/dataTables.bootstrap.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/dataTables.buttons.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/buttons.bootstrap.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/buttons.flash.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/buttons.html5.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/buttons.print.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/dataTables.fixedHeader.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/dataTables.keyTable.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/dataTables.responsive.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/responsive.bootstrap.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/dataTables.scroller.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/jszip.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/pdfmake.min.js')}}"></script>
    <script src="{{url_for('static',filename='resource/js/vfs_fonts.js')}}"></script>

    <!-- Custom Theme Scripts -->
    <script src="{{url_for('static',filename='resource/js/custom.min.js')}}"></script>

  </body>
</html>